<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../packages/react/index.js"></script>
    <script src="../packages/react-dom/index.js"></script>
    <script src="./babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">

    const App = (props) => {
        const newChild = React.Children.map(props.children, c => [1,6]);
        return (<div>{newChild}</div>);
    }
    console.log(App)
    ReactDOM.render(
        <div>
            <h1>Hello, world!</h1>
            <App>
                2
            </App>
        </div>,
        document.getElementById('root')
    );
</script>
</body>
</html>
